<%@ Control Language="C#" AutoEventWireup="true" Codebehind="ucSystems.ascx.cs" Inherits="BaseSystem._System.UserControl.ucSystems" %>

<table border="0" cellpadding="0" cellspacing="1" style="font-size: 12px">
    <tr>
        <td nowrap="nowrap">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td nowrap="nowrap" style="background-color: whitesmoke">
                        <asp:LinkButton ID="lkbtnNew" runat="server" OnClick="lkbtnNew_Click"><%=Resources.Base.AddSystem%></asp:LinkButton></td>
                    <td nowrap="nowrap" style="background-color: whitesmoke;">
                        <table border="0" cellpadding="1" cellspacing="0" style="width: 100%" id="tbNew"
                            runat="server" visible="false">
                            <tr>
                                <td nowrap="nowrap">
                                    <asp:TextBox ID="txtSysID" runat="server" Width="80px" Text="<%$Resources:Base,InputSysID %>"></asp:TextBox>
                                    <asp:TextBox ID="txtSysName" runat="server" Width="100px" Text="<%$Resources:Base,InputSysName %>"></asp:TextBox>
                                    <asp:TextBox ID="txtNote" runat="server" Width="130px" Text="<%$Resources:Base,InputNote %>"></asp:TextBox>
                                    <asp:LinkButton ID="lkbtnOK" runat="server" OnClick="lkbtnOK_Click" Text="<%$Resources:Base,Submit %>"></asp:LinkButton></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td align="right" style="height: 15px" >
            <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="<%$Resources:Base,RegNote %>"></asp:Label></td>
    </tr>
    <tr>
        <td nowrap="nowrap">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand"
                  CssClass="GridViewStyle">
                <Columns>
                    <asp:BoundField DataField="SysID" HeaderText="<%$Resources:Base,SysID %>">
                        <ItemStyle Width="100px" Wrap="False" HorizontalAlign="Center"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="SysName" HeaderText="<%$Resources:Base,SysName %>">
                        <ItemStyle Width="120px" Wrap="False" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Note" HeaderText="<%$Resources:Base,Note %>">
                        <ItemStyle Width="150px"/>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:CommandField DeleteText="" InsertText="" NewText="" SelectText="" ShowEditButton="True"
                        EditText="<%$Resources:Base,Modify %>" Visible="False">
                        <ItemStyle Wrap="False"/>
                    </asp:CommandField>
                    <asp:TemplateField ShowHeader="False">
                        <ItemStyle Wrap="False"  HorizontalAlign="Center"  />
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="ReRegister"
                                CommandArgument='<%# Container.DisplayIndex %>' Text="<%$Resources:Base,Register %>"></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderTemplate>
                        </HeaderTemplate>
                        <HeaderStyle Wrap="False" />
                    </asp:TemplateField>
                    <asp:TemplateField ShowHeader="False" Visible="False">
                        <ItemStyle Wrap="False"/>
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" CommandName="SetRoles"
                                CommandArgument='<%# Container.DisplayIndex %>' Text="<%$Resources:Base,UserRoleSet %>"></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle Wrap="False" />
                    </asp:TemplateField>
                </Columns>
                <FooterStyle CssClass="GridViewFooterStyle"/>
                <RowStyle CssClass="GridViewRowStyle"/>
                <EditRowStyle CssClass="GridViewEditRowStyle"/>
                <SelectedRowStyle CssClass="GridViewSelectedRowStyle"/>
                <PagerStyle CssClass="GridViewPagerStyle"/>
                <HeaderStyle CssClass="GridViewHeaderStyle"/>
                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td  style="height: 19px">
            <asp:Label ID="lblmsg" runat="server" ForeColor="Red" Font-Size="10px"></asp:Label></td>
    </tr>
</table>
